mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
Merge branch 'develop' of https://github.com/bigcapitalhq/client into develop
This commit is contained in:
@@ -50,7 +50,7 @@ function VendorCreditNoteForm({
|
||||
isNewMode,
|
||||
submitPayload,
|
||||
vendorCredit,
|
||||
bill,
|
||||
newVendorCredit,
|
||||
createVendorCreditMutate,
|
||||
editVendorCreditMutate,
|
||||
} = useVendorCreditNoteFormContext();
|
||||
@@ -73,9 +73,7 @@ function VendorCreditNoteForm({
|
||||
...(vendorcreditAutoIncrement && {
|
||||
vendor_credit_number: vendorCreditNumber,
|
||||
}),
|
||||
...transformToEditForm({
|
||||
...pick(bill, ['vendor_id', 'entries']),
|
||||
}),
|
||||
...newVendorCredit,
|
||||
}),
|
||||
}),
|
||||
[vendorCredit, base_currency],
|
||||
|
||||
@@ -20,7 +20,7 @@ const VendorCreditNoteFormContext = React.createContext();
|
||||
*/
|
||||
function VendorCreditNoteFormProvider({ vendorCreditId, ...props }) {
|
||||
const { state } = useLocation();
|
||||
|
||||
|
||||
const billId = state?.billId;
|
||||
|
||||
// Handle fetching the items table based on the given query.
|
||||
@@ -61,6 +61,12 @@ function VendorCreditNoteFormProvider({ vendorCreditId, ...props }) {
|
||||
// Determines whether the form in new mode.
|
||||
const isNewMode = !vendorCreditId;
|
||||
|
||||
const newVendorCredit = !isEmpty(bill)
|
||||
? transformToEditForm({
|
||||
...pick(bill, ['vendor_id', 'entries']),
|
||||
})
|
||||
: [];
|
||||
|
||||
// Provider payload.
|
||||
const provider = {
|
||||
items,
|
||||
@@ -68,7 +74,7 @@ function VendorCreditNoteFormProvider({ vendorCreditId, ...props }) {
|
||||
vendorCredit,
|
||||
submitPayload,
|
||||
isNewMode,
|
||||
bill,
|
||||
newVendorCredit,
|
||||
|
||||
isVendorCreditLoading,
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ export default function VendorsCreditNoteEmptyStatus() {
|
||||
const history = useHistory();
|
||||
return (
|
||||
<EmptyStatus
|
||||
title={<T id={'the_organization_doesn_t_receive_money_yet'} />}
|
||||
title={<T id={'vendor_credits.empty_status.title'} />}
|
||||
description={
|
||||
<p>
|
||||
<T id={'vendor_credits.empty_status_description'} />
|
||||
<T id={'vendor_credits.empty_status.description'} />
|
||||
</p>
|
||||
}
|
||||
action={
|
||||
@@ -26,7 +26,7 @@ export default function VendorsCreditNoteEmptyStatus() {
|
||||
large={true}
|
||||
onClick={() => history.push('/vendor-credits/new')}
|
||||
>
|
||||
<T id={'vendor_credits.action.new_vendor_credit'} />
|
||||
<T id={'vendor_credits.label.new_vendor_credit'} />
|
||||
</Button>
|
||||
|
||||
<Button intent={Intent.NONE} large={true}>
|
||||
|
||||
@@ -12,10 +12,10 @@ export default function CreditNotesEmptyStatus() {
|
||||
const history = useHistory();
|
||||
return (
|
||||
<EmptyStatus
|
||||
title={<T id={'the_organization_doesn_t_receive_money_yet'} />}
|
||||
title={<T id={'credit_note.empty_status.title'} />}
|
||||
description={
|
||||
<p>
|
||||
<T id={'credit_note.empty_status_description'} />
|
||||
<T id={'credit_note.empty_status.description'} />
|
||||
</p>
|
||||
}
|
||||
action={
|
||||
|
||||
@@ -1512,7 +1512,8 @@
|
||||
"credit_note.action.edit_credit_note": "تعديل إشعار دائن",
|
||||
"credit_note.column.credit_note_no": "إشعار الدائن #",
|
||||
"credit_note.column.credit_date": "تاريخ دائن",
|
||||
"credit_note.empty_status_description": "",
|
||||
"credit_note.empty_status.title": "خفض أرصدة الزبائن عن طريقة إنشاء إشعار دائن",
|
||||
"credit_note.empty_status.description": "إشعار دائن وهو مستند تجاري يعطى للزبون عند إرجاع البضائع ، مع امكانية اضافة عملية استرجاع اموال او إضافته إلي فواتير البيع التي لم تدفع.",
|
||||
"credit_note.label_credit_note_date": "تاريخ إشعار الدائن",
|
||||
"credit_note.label_amount_to_credit": "قيمة الدائنة",
|
||||
"credit_note.label_credit_note_details": "تفاصيل إشعار الدائن",
|
||||
@@ -1550,6 +1551,8 @@
|
||||
"vendor_credits.edit_success_message": "تم تعديل إشعار المدين بنجاح.",
|
||||
"vendor_credits.alert.delete_message": "تم حذف إشعار المدين بنجاح",
|
||||
"vendor_credits.note.once_delete_this_vendor_credit_note": " بمجرد حذف إشعار المدين ، لن تتمكن من استعادته لاحقًا. هل أنت متأكد أنك تريد حذف هذا إشعار ",
|
||||
"vendor_credits.empty_status.title": "فض أرصدة الموردين عن طريق إنشاء إشعار مدين" ,
|
||||
"vendor_credits.empty_status.description": "إشعار المدين هو المستند الذي يرسل إلى المورد و يجعله مديناً للمنشأة ، فهو إثبات من قبل المنشأة أن لها حق يجب أخذه من المورد." ,
|
||||
"vendor_credit_number_settings": "إعدادات رقم إشعار المدين",
|
||||
"vendor_credit.auto_increment.auto": "يتم تعيين أرقام إشعارات المدين على وضع الزيادة التلقائي. هل أنت متأكد من تغيير هذا الإعداد؟",
|
||||
"vendor_credit.auto_increment.manually": "يتم تعيين أرقام إشعارات المدين على وضع الزيادة التلقائي. هل أنت متأكد من تغيير هذا الإعداد؟",
|
||||
@@ -1661,8 +1664,8 @@
|
||||
"item.drawer_quantity_sold": "الكمية المباعة",
|
||||
"journal_entries.amount_displayed_base_currency":"يتم عرض المبلغ بالعملة الأساسية الخاصة بك ",
|
||||
"inventory_adjustment.column.product":"المنتج",
|
||||
"convert_to_credit_note":"تحويل إلى إشعار الدائن",
|
||||
"convert_to_vendor_credit":"تحويل إلى إشعار المدين",
|
||||
"convert_to_credit_note":"تحويل إلى إشعار دائن",
|
||||
"convert_to_vendor_credit":"تحويل إلى إشعار مدين",
|
||||
"overdue":"Overdue"
|
||||
}
|
||||
|
||||
|
||||
@@ -1503,7 +1503,8 @@
|
||||
"credit_note.action.delete_credit_note": "Delete Credit Note",
|
||||
"credit_note.column.credit_note_no": "Credit Note #",
|
||||
"credit_note.column.credit_date": "Credit Date",
|
||||
"credit_note.empty_status_description": "Record sales transactions from customers who make no or partial payment and help you keep track of accounts receivable with a customer.",
|
||||
"credit_note.empty_status.title": "Reduce customers balance by create credit note",
|
||||
"credit_note.empty_status.description": "A credit note is a commercial document given to the customer when the goods are returned, with the possibility of adding a refund or applied to unpaid sales invoices.",
|
||||
"credit_note.label_credit_note_date": "Credit Note date",
|
||||
"credit_note.label_credit_note": "Credit Note #",
|
||||
"credit_note.label_amount_to_credit": "Amount to credit",
|
||||
|
||||
Reference in New Issue
Block a user